package com.umakr.demo.service;

import com.umakr.demo.mapper.TeacherBanjiMapper;
import com.umakr.demo.model.Banji;
import com.umakr.demo.model.TeacherBanji;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangliu on 2017/8/22.
 */
@Service
public class TeacherBanjiService {
    @Autowired
    TeacherBanjiMapper teacherBanjiMapper;

    public List<Banji> teacherShowBanji(Long tid){
        List<Banji> list = teacherBanjiMapper.teacherShowBanji(tid);
        return list;
    }

    public void addAll(TeacherBanji teacherBanji){
        teacherBanjiMapper.addAll(teacherBanji);
    }

    public void deleteAll(Long tid){
        teacherBanjiMapper.deleteAll(tid);
    }
}
